set the visible of card field 1 to not the visible of card field 1
if the visible of card field 1 is true then
set the name of me to "Hide LSP Source"
else set the name of me to "Show LSP Source"
end mouseUp
-- part contents for background part 16
----- text -----
POPUPPICTURE XCMD version 1.1
Kevin Calhoun
PopUpPicture opens a window on top of the current card and displays a picture in it. You can't do anything with the picture except look at it. When you click the mouse (or, alternatively, when you release the mouse) the picture goes away and its window is disposed of. Color pictures (in PICT2 format) will appear in color on a suitably equipped Mac II and will appear in monochrome on any other machine running System 4.1 or later.
horse*
You tell PopUpPicture what picture to draw by specifying the ID number a resource of type PICT, which can be contained in the current stack or in any other open resource file, including the home stack, HyperCard, or the System file. Any picture you've copied to the clipboard can become a resource of type PICT--use the ClipToPICT XFCN to achieve this transformation and to install the new PICT resource in your stack. A file of type PICT can be converted to a PICT resource using the PICTFileToRes XFCN.
INVOKING POPUPPICTURE
PopUpPicture takes six parameters, the last two of which are optional. You must specify the ID of the PICT resource you want displayed, the horizontal and vertical coordinates of the top left corner of the window in which the picture will be drawn, and the type of window you want. You may also specify that you want the picture to disappear when the mouse button is next released rather than when it is next pushed.
The pictureID is the ID of the PICT resource you want displayed.
The top and left parameters are given as coordinates in the card window coordinate system. A top of 0 and a left of 0 would draw the picture flush against the top left corner of the card window.
PopUpPicture will draw three different kinds of windows--a windowKind of 1 produces a modal dialog box (a box with a double border), a windowKind of 2 produces a plain box, and a windowKind of 3 produces a plain box with shadow. If windowKind has any other value, PopUpPicture defaults to a plain box with shadow. (Note that the top left corner of the picture will appear in the same place regardless of which windowKind you request, although the top left corner of the window will vary.)
If you want the picture to remain present until the next time the user pushes the mouse button, pass "false" in the onMouseUp parameter. If you want the picture to remain present until the next time the user releases the mouse button, pass "true" in the onMouseUp parameter. If you don't provide the onMouseUp parameter, PopUpPicture will remove the picture on the next push of the mouse button.
The event that causes the picture to be removed, a mouseDown if onMouseUp is FALSE, a mouseUp if onMouseUp is TRUE, can be passed on to HyperCard. If you want the event to be passed on so that it generates a HyperTalk message, pass "true" in the passThru parameter. To test this effect, add the passThru parameter to the script of the button "until mouse press."